/// Copyright 2010-2012 4kdownload.com (developers@4kdownload.com)
/**
    This file is part of 4k Download.

    4k Download is free software; you can redistribute it and/or modify
    it under the terms of the one of two licenses as you choose:

    1. GNU GENERAL PUBLIC LICENSE Version 3
    (See file COPYING.GPLv3 for details).

    2. 4k Download Commercial License
    (Send request to developers@4kdownload.com for details).
   
*/


#include "componentmodel/proxyimageprovider.h"

using namespace ComponentModel;


ProxyImageProvider::ProxyImageProvider(QDeclarativeImageProvider* provider) :
    QDeclarativeImageProvider(provider->imageType()),
    m_provider(provider)
{    
}


QImage ProxyImageProvider::requestImage(const QString &id, QSize *size, const QSize& requestedSize)
{
    return m_provider->requestImage(id, size, requestedSize);
}


QPixmap ProxyImageProvider::requestPixmap(const QString &id, QSize *size, const QSize& requestedSize)
{
    return m_provider->requestPixmap(id, size, requestedSize);
}
